package datatypes.tv;

import java.util.ArrayList;
import java.util.List;

public class tvStarringRoles {
	List<tvStarringRole> tv_starring_roles;

	public tvStarringRoles() {
		this.tv_starring_roles = new ArrayList<tvStarringRole>();
	}
	
	public tvStarringRoles(tvStarringRole tv_starring_role) {
		this.tv_starring_roles = new ArrayList<tvStarringRole>();
		this.tv_starring_roles.add(tv_starring_role);
	}
	
	public tvStarringRoles(List<tvStarringRole> tv_starring_roles) {
		this.tv_starring_roles = new ArrayList<tvStarringRole>();
		this.tv_starring_roles.addAll(tv_starring_roles);
	}

	public void addGuestRole(tvStarringRole tv_starring_roles) {
		this.tv_starring_roles.add(tv_starring_roles);
	}
 
	
	public List<tvStarringRole> gettvStarringRoles(){
		return this.tv_starring_roles;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		int SRIndex = 1;
		for(tvStarringRole tv_starring_role : tv_starring_roles){
			sb.append("tv_starring_role <" + SRIndex++ + ">: \n");
			sb.append(tv_starring_role.toString() + "\n");
		}

		return sb.toString();
	}
}
